<?php

class Models_Product extends Libs_Model {

    function __construct() {
        parent::__construct();
    }

    public function getAllProduct(){
        $this->db->connect();
        $list_Pro = $this->db->executeQuery("select * from products");
        $this->db->disconnect();
        return $list_Pro;
    }
    
    public function getDetailProductByUrl($pro_url){
        $this->db->connect();
        $list_Pro = $this->db->executeQuery("select * from products where pro_url = '$pro_url'");
        $this->db->disconnect();
        return $list_Pro;
    }
    
    
    
    
}

